﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="projectadmin.aspx.cs" Inherits="Sys_projectadmin" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>项目管理员</title>
    <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
	<link rel="Stylesheet" href="../js/artDialog/skin/aero.css" /> 
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>  
	<script type="text/javascript" src="../js/artDialog/artDialog.min.js"></script> 
	<script type="text/javascript">
	function geturl1(target)
	{
	var url=$(target).attr("href");
	showdialog1(url);
	return false;
	}
    function showdialog1(tar)
     {
         art.dialog.open(tar,{id:"iframedetail2" ,title:"查看详细信息",skin:"aero"});
    }
   function geturl2(target)
	{
	var url=$(target).attr("href");
	showdialog2(url);
	return false;
	}
    function showdialog2(tar)
     {
         art.dialog.open(tar,{id:"iframepoint" ,title:"指定项目管理员",skin:"aero",lock:true,
         closeFn: function(){window.location.reload();}
         });
    } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="background:#efefef;width:100%;">
		<a href="adminview.aspx" target="mainwin" class="easyui-linkbutton" plain="true">学院管理员</a>&nbsp;&nbsp;|
		<a href="#" class="easyui-linkbutton" plain="true">项目管理员</a>&nbsp;&nbsp;|
		<a href="commonuser.aspx"  target="mainwin" class="easyui-linkbutton" plain="true">所有用户</a>
	</div>	
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
           <div>
          <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" FirstPageText="首页"
                        HorizontalAlign="Right" LastPageText="末页" NextPageText="下一页" 
                        PageIndexBoxType="TextBox" PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left"
                        ShowPageIndexBox="Always" Width="100%" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>" OnPageChanged="AspNetPager1_PageChanged" CustomInfoSectionWidth="50%" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager></div> 
                   <div>
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" EmptyDataText="暂时无任何数据！" Width="100%" OnRowCommand="GridView1_RowCommand">
                    <Columns>
                        <asp:TemplateField HeaderText="序号">   <ItemTemplate> 
                                 <%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%>
                            </ItemTemplate> 
                            <ItemStyle Width="30px" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="btnname" HeaderText="项目类别" />
                        <asp:BoundField DataField="incharge" HeaderText="标记" >
                            <ItemStyle Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="inchargename" HeaderText="管理员" >
                            <ItemStyle Width="80px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="regisdate" HeaderText="建设日期">
                            <ItemStyle Width="180px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="指定管理员">
                            <ItemTemplate>
                           <a href='../Popwin/proviewdialog.aspx?pid=<%# Eval("id") %>&tid=<%# Eval("inchargeid") %>' onclick="return geturl2(this)">指定</a> 
                          </ItemTemplate>
                            <ItemStyle Width="90px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                 <a href='../Popwin/personaldatails.aspx?id=<%# Eval("inchargeid") %>' target="mainwin" onclick="return geturl1(this)">
                                <img style="border:0px;" src="../js/themes/icons/search.png" alt="查看" /></a>|
                                <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/js/themes/icons/key-red.png"
                                    ToolTip="重置密码" />|
                                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/js/themes/icons/undo.png"
                                    OnClientClick="return confirm('是否清除此项目管理员?');" ToolTip="清除管理员" CommandArgument='<%# Eval("id") %>' CommandName="clear" />
                            </ItemTemplate>
                            <ItemStyle Width="90px" />
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle CssClass="pgr" />
                    <AlternatingRowStyle CssClass="alt" />
                </asp:GridView>
                </div> 
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
